package com.air.repo.design.pattern.proxy;

/**
 * @Description: java类作用描述
 * @Author: yh
 * @CreateDate: 2018/7/11 15:03
 */
public class AssistantStatic implements Boss{
    Boss boss;
    public AssistantStatic(Boss boss) {
        this.boss = boss;
    }

    public void getTea() {
        System.out.println("代理之后>>>>"+boss.getClass());
        boss.getTea();
    }

    public void readNews() {

    }

    public static void main(String[] args) {
        Boss boss=new BossImpl();
        System.out.println("代理之前>>>>"+boss.getClass());
        Boss assistant=new AssistantStatic(boss);
        assistant.getTea();
    }
}
